package com.igeekhome.ribbon.custom;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author : FMH
 * @Date : 2020/2/24 11:38
 * @Description :
 * @Modify By : 86159
 * @Version :
 */
@Configuration
public class RandomRuleConfiguration {

    @Bean
    public IRule randomRule(){
        return new RandomRule();
    }
}
